package team.tttxs.ct.hibernate.dao.util;

public class RangeCriteria {
	
	private String attribute;
	
	private Object comparisonValue;
	
	private Operator operator;
	
	public RangeCriteria(){
		//default
	}
	
	public RangeCriteria(String attribute, Object comparisonValue, Operator operator){
		this.attribute = attribute;
		this.comparisonValue = comparisonValue;
		this.operator = operator;
	}

	public String getAttribute() {
		return attribute;
	}

	public void setAttribute(String attribute) {
		this.attribute = attribute;
	}

	public Object getComparisonValue() {
		return comparisonValue;
	}

	public void setComparisonValue(Object comparisonValue) {
		this.comparisonValue = comparisonValue;
	}
	
	public Operator getOperator() {
		return operator;
	}

	public void setOperator(Operator operator) {
		this.operator = operator;
	}


	public enum Operator {
		GT, LT;
	}

}
